﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Game
{
    public class GameObjectDynamicInfo : GameObjectMoveableInfo
    { 
        public override GameObject CreateInstance(WorldScene scene)
        {
            var node = scene.Core.GetScene().GetNode(Name);

            var actorDesc = new PhysicDynamicBoxDescription(node);
            var body = scene.CreatePhysicBody(actorDesc);

            var instance = new GameObjectDynamic();
            instance.Body = body;
            instance.Name = Name;
            instance.Info = this;

            return instance;
        }
    }

    public class GameObjectDynamic : GameObjectMoveable
    {
    }
}